We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.
Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)
In this test the "nasm" executable is as patched in https://bugzilla.nasm.us/show_bug.cgi?id=3392892 The "orignasm" executable is https://github.com/netwide-assembler/nasm/commit/a916e4127b2eaa3bf40bddf3de9b0ceefc0d98a4 The bug is trivial to avoid as even a blank line between the %rep and %endrep is enough to avoid the panic. Any other content also seems to work. test/20230720.2$ cat test1.asm %macro mmac 0 %rep 1 %endrep %endmacro mmac test/20230720.2$ cat test2.asm %macro mmac 0 %rep 1 %endrep %endmacro mmac test/20230720.2$ orignasm -v NASM version 2.17rc0 compiled on Jul 20 2023 test/20230720.2$ orignasm test1.asm test/20230720.2$ orignasm test2.asm panic: test2.asm:6: assertion fm == istk->mstk.mstk failed at asm/preproc.c:7568 test/20230720.2$ nasm -v NASM version 2.17rc0 compiled on Jul 20 2023 test/20230720.2$ nasm test1.asm test/20230720.2$ nasm test2.asm panic: test2.asm:6: assertion fm == istk->mstk.mstk failed at asm/preproc.c:7568 test/20230720.2$
Fix checked in, thank you!